package com.itheima06;

/**
 * @author Xiao
 * @date 2021/7/18
 */
public class InnerDemo01 {
    public static void main(String[] args) {
        C1.C2 c2 = new C1().new C2();
        c2.show();
        System.out.println("---------");
        C1 c1 = new C1();
        c1.method();
    }
}

class C1 {
    class C2 {
        public void show() {
            System.out.println("内部类show方法");
        }
    }
    public void method() {
        System.out.println("外部类method方法");
        C2 c2 = new C2();
        c2.show();
    }
}
